#include"mystdio.h"
#include<string.h>
#include<unistd.h>

int main()
{
    FILE* pf = _fopen("log.txt", "a");
    if(pf == NULL)
    {
        return 1;
    }

    const char* meg = "meimei ai xinge\n";
    int cnt = 10;
    while(cnt--)
    {
        _fwrite(pf, meg, strlen(meg));
        sleep(1);
    }
    
    //_fflush()
    _fclose(pf);
    return 0;
}
